package jude.java.money.migrate;

import jude.java.money.tools.Tidy;

/** magento custom options item */
public class CustomOptionItem {

	private String title;
	private String sku;
	private String price;
	
	public CustomOptionItem() {
	}
	public CustomOptionItem(String title, String sku, String price) {
		this.title = title;
		this.sku = sku;
		this.price = price;
	}
	public CustomOptionItem(String title) {
		this(title, Tidy.nicename(title).toLowerCase(), null);
	}
	public CustomOptionItem(String title, String sku) {
		this(title, sku, null);
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	
	public void setTitleSku(String value) {
		this.title = value;
		this.sku(value);
	}
	public CustomOptionItem sku(String sku) {
		this.sku = MigrateUtils.sku(sku);
		return this;
	}

}
